package com.rentong.wx.cust.dao;

import com.rentong.wx.cust.domain.CustServiceOrderEntity;
import com.rentong.wx.cust.dto.CustServiceOrderEntityDto;
import com.rentong.wx.cust.dto.ServiceOrderChefVo;
import com.rentong.wx.cust.dto.orderStateNum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:32
 */
@Mapper
public interface CustServiceOrderDao extends BaseMapper<CustServiceOrderEntity> {

    int getByOrderStat(@Param("custId") Long custId);

    void updateByServiceOrderId(@Param("serviceOrderId") Long serviceOrderId, @Param("custId") Long custId, @Param("type") Integer type);

    List<ServiceOrderChefVo> getOrderChefList(@Param("serviceOrderId") Long serviceOrderId);

    List<CustServiceOrderEntityDto> getUserOrderList(CustServiceOrderEntityDto custServiceOrderEntityDto);

    List<CustServiceOrderEntityDto> getOrderNumListUser(@Param("custId") Long custId);

    List<CustServiceOrderEntityDto> getOrderNumListChef(@Param("custId") Long custId);

    CustServiceOrderEntityDto getOrderInfoById(@Param("orderId") Long orderId, @Param("custId") Long custId);

    CustServiceOrderEntityDto getOrderByServiceOrderId(CustServiceOrderEntityDto custServiceOrderEntityDto);

    List<CustServiceOrderEntity> getCompleteOrder();

    List<orderStateNum>  getOrderStateList(@Param("currentCustId") Long currentCustId);

    Integer getNumByCustId(@Param("custId") Long custId, @Param("chefId") Long chefId);



}
